package gardienapplet.ihm;

import javax.swing.*;
import java.awt.*;
import javax.swing.border.*;
//import com.borland.jbcl.layout.*;

public class PanneauApplet extends JPanel
{
    JPanel jPanel3 = new JPanel();
    JLabel jLabel1 = new JLabel();
    JLabel jLabel4 = new JLabel();
    JLabel jLabel6 = new JLabel();
    JLabel jLabel9 = new JLabel();
    JLabel jLabel10 = new JLabel();
    TitledBorder titledBorder1;
    JLabel jLabel2 = new JLabel();
    GridBagLayout gridBagLayout1 = new GridBagLayout();

    public PanneauApplet() {
	try
	{
	    jbInit();
	}
	catch(Exception e)
	{
	    e.printStackTrace();
	}
    }

    private void jbInit() throws Exception
    {
	titledBorder1 = new TitledBorder("");
	this.setLayout(null);
	jPanel3.setBackground(new Color(255, 255, 200));
	jPanel3.setBorder(BorderFactory.createLineBorder(Color.black));
	jPanel3.setBounds(new Rectangle(17, 39, 308, 48));
	jPanel3.setLayout(gridBagLayout1);
	jLabel1.setText("URL locale");
	jLabel4.setText("URL superviseur");
	jLabel6.setBackground(Color.lightGray);
	jLabel6.setText("http://172.20.3.73:7081");
	jLabel9.setText("http://172.20.3.0:7080/rpc");
	jLabel10.setBackground(Color.gray);
	jLabel10.setForeground(Color.cyan);
	jLabel10.setBorder(BorderFactory.createEtchedBorder());
	jLabel10.setOpaque(true);
	jLabel10.setHorizontalAlignment(SwingConstants.CENTER);
	jLabel10.setHorizontalTextPosition(SwingConstants.CENTER);
	jLabel10.setText("Net Control");
	jLabel10.setBounds(new Rectangle(18, 10, 81, 21));
	jLabel2.setFont(new java.awt.Font("Dialog", 1, 14));
	jLabel2.setForeground(Color.white);
	jLabel2.setHorizontalAlignment(SwingConstants.CENTER);
	jLabel2.setText("Paramètres Interface Gardien");
	jLabel2.setBounds(new Rectangle(103, 9, 221, 22));
	this.setBackground(Color.lightGray);
	this.setBorder(BorderFactory.createEtchedBorder());
	jPanel3.add(jLabel1,   new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
		,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(3, 4, 0, 0), 54, 0));
	jPanel3.add(jLabel4,   new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0
		,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 4, 3, 0), 22, 2));
	jPanel3.add(jLabel9,  new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0
		,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 3, 0), 45, 3));
	jPanel3.add(jLabel6,  new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0
		,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(3, 0, 0, 0), 58, 0));
	this.add(jLabel2, null);
	this.add(jLabel10, null);
	this.add(jPanel3, null);
    }

    public void setParams(String urlGardien, String urlSuperviseur)
    {
	jLabel6.setText(urlGardien);
	jLabel9.setText(urlSuperviseur);
    }
}